home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
hardware
/
host.arc
/
DAYCHK.ARC
/
DEMO.BAT
< prev
Wrap
DOS Batch File
|
1987-11-24
|
1KB
|
31 lines
echo off
echo .
echo .
echo . This batch file demonstrates how DayCheck can be used effectively.
echo .
echo .
DAYCHECK Month
if errorlevel 1 if not errorlevel 2 echo The month is January...
if errorlevel 2 if not errorlevel 3 echo The month is February...
if errorlevel 3 if not errorlevel 4 echo The month is March...
if errorlevel 4 if not errorlevel 5 echo The month is April...
if errorlevel 5 if not errorlevel 6 echo The month is May...
if errorlevel 6 if not errorlevel 7 echo The month is June...
if errorlevel 7 if not errorlevel 8 echo The month is July...
if errorlevel 8 if not errorlevel 9 echo The month is August...
if errorlevel 9 if not errorlevel 10 echo The month is September...
if errorlevel 10 if not errorlevel 11 echo The month is October...
if errorlevel 11 if not errorlevel 12 echo The month is November...
if errorlevel 12 if not errorlevel 13 echo The month is December...
DAYCHECK Day
if errorlevel 0 if not errorlevel 1 echo The day is Sunday...
if errorlevel 1 if not errorlevel 2 echo The day is Monday...
if errorlevel 2 if not errorlevel 3 echo The day is Tuesday...
if errorlevel 3 if not errorlevel 4 echo The day is Wednesday...
if errorlevel 4 if not errorlevel 5 echo The day is Thursday...
if errorlevel 5 if not errorlevel 6 echo The day is Friday...
if errorlevel 6 if not errorlevel 7 echo The day is Saturday...
echo on